import request from "@/request";

export const getList = (params) =>
  request({
    url: "/admin-api/home/notice/page",
    method: "get",
    params,
  });

export const add = (data) =>
  request({
    url: "/admin-api/home/notice/create",
    method: "post",
    data,
  });

export const remove = (id) =>
  request({
    url: "/admin-api/home/notice/delete",
    method: "delete",
    params: {
      id,
    },
  });

export const edit = (data) =>
  request({
    url: "/admin-api/home/notice/update",
    method: "put",
    data,
  });
